<?php

namespace humhub\modules\api\models;

use Yii;
use humhub\components\ActiveRecord;


class Tag extends ActiveRecord
{

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tag';
    }

    public function rules()
    {
        return array(
            [['name'], 'required'],
            [['name'], 'unique'],
        );
    }




}
